AddSerialNoRecord

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > AddSerialNoRecord

## AddSerialNoRecord

The AddSerialNoRecord function will add a serial number the CheckPoint Database.

###### Syntax

TRecordResponse * AddSerialNoRecord( TCheckPointSNSerialRecord * ASerialNoRecord, BSTR ASessionID ) ;

###### Parameters

ALicenseRecord

[IN] This is a TCheckPointSNSerialRecord class which contains the Serial Number information that is to be entered into the CheckPoint Database. The fields of interest are:

- CheckPointUserID - the user id of the Checkpoint User who generated the serial number. Note that this is the CheckPoint User, not the End User.

- LicenseID - The license ID that is associated with this Serial Number

- SerialNumber - The Serial Number that was generated.

- AuthDefIDNo - the Authorization Definition ID that is associated to this Serial Number

- AuthParameter - If a parameter is necessary for the Authorization Definition, then you would declare it in this field.

- TotalActivationsPermitted - the number of permitted activations allowed for the serial number

- OverflowActivationsPermitted - the number of overflows allowed for the serial number

- ActivationsConsumed - the number of activations consumed (Under regular circumstances, this should be 0)

- OrderNo- the order number that you wish to associate with this Serial Number

ASessionID

[IN] This is the session ID of the logged in user.

###### Remarks

The CheckPointUserID is used to keep track of who generated the Serial Number. This should not be mistaken for the End User who will be using the serial number.

Also note that this function does not generate a serial number. It only adds the serial number into the database. Use GenerateSN or GenerateSNs if you wish to generate a serial number.

###### Return Value

Returns the custom class TRecordResponse. The fields of interest that is related to this method are:

- Success- True will be returned if this function was successful, otherwise false will be returned.

- PrimaryKeyValue- the Serial Number ID that is assigned to the Serial Number upon generation.

- ErrorMessage- if an error occurred, the associated error message can be found in this field.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"